package com.xxl.baselib.util;

import com.nostra13.universalimageloader.core.DisplayImageOptions;

/**
 * Title: ImageLoaderUtils.java
 * Description:
 * Copyright (c) 版权所有请勿抄袭 2018
 * Created DateTime: 2018/4/11 15:11
 * Created by xuelianx.
 */
public class ImageLoaderUtils {

    public static DisplayImageOptions getOption() {
        return new DisplayImageOptions.Builder().cacheInMemory(true).cacheOnDisk(true).build();
    }

    public static DisplayImageOptions getOptionWithNoCache() {
        return new DisplayImageOptions.Builder().cacheInMemory(false).cacheInMemory(false).build();
    }
}
